/*
* StandardTimer.java
* Copyright (C) 2005
* 
* $Id: StandardTimer.java,v 1.1 2005/07/01 14:11:00 hzi Exp $
*/
using System;
namespace Suake2.UI.sys
{
	
	
	class StandardTimer:Timer
	{
		
		private long base_Renamed;
		
		internal StandardTimer()
		{
			base_Renamed = (System.DateTime.Now.Ticks - 621355968000000000) / 10000;
		}
		
		public override long currentTimeMillis()
		{
			long time = (System.DateTime.Now.Ticks - 621355968000000000) / 10000;
			long delta = time - base_Renamed;
			if (delta < 0)
			{
				delta += System.Int64.MaxValue + 1;
			}
			return delta;
		}
	}
}